package sxt.entity;

import java.util.Date;

public class Message {
    String messageid;
    int goodsId;
    String userId;
    String message;
    String time;//如果希望时间能按中国标准格式来，必须string

    public Message(String messageid, int goodsId, String userId, String message, String time) {
        this.messageid = messageid;
        this.goodsId = goodsId;
        this.userId = userId;
        this.message = message;
        this.time = time;
    }

    public Message(int goodsId, String userId, String message, String time) {
        this.goodsId = goodsId;
        this.userId = userId;
        this.message = message;
        this.time=time;
    }

    public String getMessageid() {
        return messageid;
    }

    public void setMessageid(String messageid) {
        this.messageid = messageid;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
